<?php
class Voucher_detail_model extends MY_Model {
	
	public $table = 'VOUCHER_DETAILS';
	public $join = 'left join ACCOUNTS on ACCOUNTS.ID = VOUCHER_DETAILS.ACCOUNT_ID join VOUCHERS on VOUCHERS.ID = VOUCHER_DETAILS.VOUCHER_ID ';
	public $select = 'VOUCHER_DETAILS.*,ACCOUNTS.NAME ACCOUNT_NAME,ACCOUNTS.CODE ACCOUNT_CODE,VOUCHERS.VOUCHER_DATE,VOUCHERS.NUMBER';
	
    function __construct()
    {
        parent::__construct();
    }
	
}
?>